-- GENERATED SPELL FOR [Telaari Watcher] --


function spell0_18488(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(33424,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18488', 570, 1)
end

function spell1_18488(pUnit, Event) --@Lights Out,n/a--
pUnit:FullCastSpellOnTarget(33425,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18488', 583, 1)
end

function spell2_18488(pUnit, Event) --@Punch,n/a--
pUnit:FullCastSpellOnTarget(33423,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18488', 584, 1)
end

function Sorts_18488(pUnit, Event)
local choix_sorts_18488 = math.random(0, 2)
if choix_sorts_18488 == 0 then
pUnit:RegisterEvent('spell0_18488', 1, 1)
end
if choix_sorts_18488 == 1 then
pUnit:RegisterEvent('spell1_18488', 1, 1)
end
if choix_sorts_18488 == 2 then
pUnit:RegisterEvent('spell2_18488', 1, 1)
end
end

function mob18488_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18488', math.random(1500, 3000), 1)
end

function mob18488_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18488_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18488_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18488, 1, 'mob18488_Action')
RegisterUnitEvent(18488, 2, 'mob18488_Leave')
RegisterUnitEvent(18488, 3, 'mob18488_Kill')
RegisterUnitEvent(18488, 4, 'mob18488_Die')
